package com.huang.we_chart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (Student)表实体类
 *
 * @author HuangShen
 * @since 2020-11-29 10:11:36
 */
@SuppressWarnings("serial")
public class Student extends Model<Student> {
    //学生id


    private String studentId;
    //微信授权id
    @TableId(type = IdType.INPUT)
    private String openid;
    //学生姓名
    private String studentName;
    //账号密码
    private String studentPassword;
    //院系id
    private Integer departmentId;
    //昵称
    private String nickName;
    //头像地址
    private String avatarHref;
    //专业id
    private String specialitiesId;


    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentPassword() {
        return studentPassword;
    }

    public void setStudentPassword(String studentPassword) {
        this.studentPassword = studentPassword;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarHref() {
        return avatarHref;
    }

    public void setAvatarHref(String avatarHref) {
        this.avatarHref = avatarHref;
    }

    public String getSpecialitiesId() {
        return specialitiesId;
    }

    public void setSpecialitiesId(String specialitiesId) {
        this.specialitiesId = specialitiesId;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId='" + studentId + '\'' +
                ", openid='" + openid + '\'' +
                ", studentName='" + studentName + '\'' +
                ", studentPassword='" + studentPassword + '\'' +
                ", departmentId=" + departmentId +
                ", nickName='" + nickName + '\'' +
                ", avatarHref='" + avatarHref + '\'' +
                ", specialitiesId='" + specialitiesId + '\'' +
                '}';
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.studentId;
    }
}